package com.cis.education.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cis.common.annotation.Excel;
import com.cis.common.core.domain.BaseEntity;

/**
 * 课程管理对象 edu_course
 * 
 * @author 管理員
 * @date 2022-01-11
 */
public class EduCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 课程名 */
    @Excel(name = "课程名")
    private String name;

    /** 课程描述 */
    @Excel(name = "课程描述")
    private String note;

    /** 学时 */
    @Excel(name = "学时")
    private Integer period;

    /** 学分 */
    @Excel(name = "学分")
    private Integer credit;

    private EduTeacher teacher;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setPeriod(Integer period) 
    {
        this.period = period;
    }

    public Integer getPeriod() 
    {
        return period;
    }
    public void setCredit(Integer credit) 
    {
        this.credit = credit;
    }

    public Integer getCredit() 
    {
        return credit;
    }

    public EduTeacher getTeacher() {
        return teacher;
    }

    public void setTeacher(EduTeacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("note", getNote())
            .append("period", getPeriod())
            .append("credit", getCredit())
            .append("teacher",getTeacher())
            .toString();
    }
}
